import Vue from 'vue'
import { axios } from '@/utils/request'

const api = {
	user: '/mock/api/user',
	role: '/mock/api/role',
	service: '/mock/api/service',
	permission: '/mock/api/permission',
	permissionNoPager: '/mock/api/permission/no-pager'
}

export default api

//post
export function postFormAction(url, parameter, contentType) {
	return axios({
		url: url,
		method: 'post',
		data: parameter,
		headers: {
			'Content-Type': contentType || 'application/x-www-form-urlencoded'
		}
	})
}
export function postFormData(url, parameter) {
	return axios({
		url: url,
		method: 'get',
		params: parameter,
		headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'blob'
	})
}
//post
export function postAction(url, parameter) {
	return axios({
		url: url,
		method: 'post',
		data: parameter
	})
}

//post method= {post | put}
export function httpAction(url, parameter, method) {
	return axios({
		url: url,
		method: method,
		data: parameter
	})
}

//put
export function putAction(url, parameter) {
	return axios({
		url: url,
		method: 'put',
		data: parameter
	})
}

//get
export function getAction(url, parameter) {
	return axios({
		url: url,
		method: 'get',
		params: parameter
	})
}

//deleteAction
export function deleteAction(url, parameter) {
	return axios({
		url: url,
		method: 'delete',
		params: parameter
	})
}

export function getUserList(parameter) {
	return axios({
		url: api.user,
		method: 'get',
		params: parameter
	})
}

export function getRoleList(parameter) {
	return axios({
		url: api.role,
		method: 'get',
		params: parameter
	})
}

export function getServiceList(parameter) {
	return axios({
		url: api.service,
		method: 'get',
		params: parameter
	})
}

export function getPermissions(parameter) {
	return axios({
		url: api.permissionNoPager,
		method: 'get',
		params: parameter
	})
}

// id == 0 add     post
// id != 0 update  put
export function saveService(parameter) {
	return axios({
		url: api.service,
		method: parameter.id == 0 ? 'post' : 'put',
		data: parameter
	})
}

/**
 * 下载文件 用于excel导出
 * @param url
 * @param parameter
 * @returns {*}
 */
export function downFile(url, parameter) {
	return axios({
		url: url,
		params: parameter,
		method: 'get',
		responseType: 'blob'
	})
}


export function cxjTjbDownloadAll(parameter) {
	return axios({
		url: "/cxj/cxjTjTjyj/cxjgl_cxjTjbDownloadAll_gly",
		params: parameter,
		method: 'get',
        // responseType: 'blob'
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'blob'
	})
}

export function cxjTjbDownload(parameter) {
	return axios({
		url: "/cxj/cxjTjTjyj/cxjgl_cxjTjbDownload_gly",
		params: parameter,
		method: 'get',
        // responseType: 'blob'
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}

export function xssubmit(data,cxj_cxj_id,xssc_jg) {
    return axios({
        url: '/cxj/cxjXssc/submit?cxj_cxj_id='+cxj_cxj_id+'&xssc_jg='+xssc_jg,
        method: 'post',
        data
    })
}
export function queryHistory(cxj_cxj_id) {
    return axios({
        url: '/cxj/cxjXssc/queryHistory?cxj_id='+cxj_cxj_id,
        method: 'post'
    })
}
export function queryXsscZjPsqk(params) {
	return axios({
		url: '/cxj/sysCxjXswtmc/cxjxs_xswtmxList',
		method: 'get',
		params
	})
}
export function queryXsscMxByXsscId(cxj_xssc_id) {
    return axios({
        url: '/cxj/cxjXssc/queryXsscMxByXsscId?cxj_xssc_id='+cxj_xssc_id,
        method: 'post'
    })
}
export function queryXsjlFirst(cxj_cxj_id) {
    return axios({
        url: '/cxj/cxjXssc/queryXsjlFirst?cxj_id='+cxj_cxj_id,
        method: 'post'
    })
}
export function xsscTj(shijian, fl_id) {
  let url = ""
  if(fl_id){
    url= '/cxj/cxjXssc/xsscTj?shijian='+shijian+'&fl_id='+fl_id
  }else {
    url= '/cxj/cxjXssc/xsscTj?shijian='+shijian
  }
  return axios({
    url,
    method: 'post'
  })

}
export function xsscTjZj(shijian, xsfzid) {
    return axios({
        url: '/cxj/cxjXssc/xsscTjZj?shijian='+shijian+'&xsfzid='+xsfzid,
        method: 'post'
    })
}
export function xsscTjJs(shijian) {
  return axios({
    url: '/cxj/cxjXssc/xsscTjJs?shijian='+shijian,
    method: 'post'
  })
}
export function xsscTjGl(shijian) {
  return axios({
    url: '/cxj/cxjXssc/xsscTjGl?shijian='+shijian,
    method: 'post'
  })
}
export function xsscTjXxh(shijian) {
  return axios({
    url: '/cxj/cxjXssc/xsscTjXxh?shijian='+shijian,
    method: 'post'
  })
}
export function xsscTjZl(shijian) {
  return axios({
    url: '/cxj/cxjXssc/xsscTjZl?shijian='+shijian,
    method: 'post'
  })
}
export function list_jlb(parameter) {
    return axios({
        url: '/cxj/cxjXssc/list_jlb',
        method: 'post',
		params: parameter,
    })
}
export function list_jlb_js(parameter) {
  return axios({
    url: '/cxj/cxjXssc/list_jlb_js',
    method: 'post',
    params: parameter,
  })
}
export function list_jlb_gl(parameter) {
  return axios({
    url: '/cxj/cxjXssc/list_jlb_gl',
    method: 'post',
    params: parameter,
  })
}
export function list_jlb_xxh(parameter) {
  return axios({
    url: '/cxj/cxjXssc/list_jlb_xxh',
    method: 'post',
    params: parameter,
  })
}
export function list_jlb_zl(parameter) {
  return axios({
    url: '/cxj/cxjXssc/list_jlb_zl',
    method: 'post',
    params: parameter,
  })
}

export function queryHistoryAll(parameter) {
	return axios({
		url: '/cxj/cxjXssc/queryHistoryAll',
		method: 'post',
		params: parameter
	})
}

export function jscsPfTj_js(parameter) {
	return axios({
		url: '/cxj/cxjJscsPfJs/jscsPfTj',
		method: 'post',
		params: parameter
	})
}
export function jscsPfTj_gl(parameter) {
	return axios({
		url: '/cxj/cxjJscsPfGl/jscsPfTj',
		method: 'post',
		params: parameter
	})
}
export function jscsPfTj_bz(parameter) {
	return axios({
		url: '/cxj/cxjJscsPfBz/jscsPfTj',
		method: 'post',
		params: parameter
	})
}
export function jscsPfTj_xxh(parameter) {
	return axios({
		url: '/cxj/cxjJscsPfXxh/jscsPfTj',
		method: 'post',
		params: parameter
	})
}
export function jscsPfTj_zl(parameter) {
	return axios({
		url: '/cxj/cxjJscsPfZl/jscsPfTj',
		method: 'post',
		params: parameter
	})
}
export function getJscsPfmxByCxjid_js(parameter) {
	return axios({
		url: '/cxj/cxjJscsPfJs/getJscsPfmxByCxjid',
		method: 'post',
		params: parameter
	})
}
export function getJscsPfmxByCxjid_gl(parameter) {
	return axios({
		url: '/cxj/cxjJscsPfGl/getJscsPfmxByCxjid',
		method: 'post',
		params: parameter
	})
}
export function getJscsPfmxByCxjid_bz(parameter) {
	return axios({
		url: '/cxj/cxjJscsPfBz/getJscsPfmxByCxjid',
		method: 'post',
		params: parameter
	})
}
export function getJscsPfmxByCxjid_xxh(parameter) {
	return axios({
		url: '/cxj/cxjJscsPfXxh/getJscsPfmxByCxjid',
		method: 'post',
		params: parameter
	})
}
export function getJscsPfmxByCxjid_zl(parameter) {
	return axios({
		url: '/cxj/cxjJscsPfZl/getJscsPfmxByCxjid',
		method: 'post',
		params: parameter
	})
}
export function jscsPfTj_export_js(parameter) {
	return axios({
		url: "/cxj/cxjJscsPfJs/jscsPfTj_export",
		params: parameter,
		method: 'get',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
export function jscsPfTj_export_zg(parameter) {
  return axios({
    url: "/cxj/cxjJscsPfZg/jscsPfTj_export",
    params: parameter,
    method: 'get',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    responseType: 'arraybuffer'
  })
}
// 技术初审评分表-导出
export function jscsPfExport(parameter) {
	return axios({
		url: "/cxj/cxjJscsFzXm/jscsPf_export",
		params: parameter,
		method: 'get',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
export function jscsPfTj_export_gl(parameter) {
	return axios({
		url: "/cxj/cxjJscsPfGl/jscsPfTj_export",
		params: parameter,
		method: 'get',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
export function jscsPfTj_export_bz(parameter) {
	return axios({
		url: "/cxj/cxjJscsPfBz/jscsPfTj_export",
		params: parameter,
		method: 'get',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
export function jscsPfTj_export_xxh(parameter) {
	return axios({
		url: "/cxj/cxjJscsPfXxh/jscsPfTj_export",
		params: parameter,
		method: 'get',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
export function jscsPfTj_export_zl(parameter) {
	return axios({
		url: "/cxj/cxjJscsPfZl/jscsPfTj_export",
		params: parameter,
		method: 'get',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
export function cxjglCxjTjbDownload(params) {
	return axios({
		url: '/cxj/cxjTjTjyj/cxjgl_cxjTjbDownload',
        method: 'get',
		params,
		headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'blob'
	})
}
export function cxjsbLoadTreeRoot(params) {
    return axios({
        url: '/sys/category/cxjsb_loadTreeRoot',
        method: 'get',
        params
    })
}
export function cxjgl_lbbc(parameter) {
    return axios({
        url: '/cxj/cxjCxj/cxjgl_lbbc',
        method: 'post',
		params: parameter
    })
}

//复审
export function fsPfTj_js(parameter) {
	return axios({
		url: '/cxj/cxjFsPfJs/fsPfTj',
		method: 'post',
		params: parameter
	})
}
export function fsPfTj_gl(parameter) {
	return axios({
		url: '/cxj/cxjFsPfGl/fsPfTj',
		method: 'post',
		params: parameter
	})
}
export function fsPfTj_bz(parameter) {
	return axios({
		url: '/cxj/cxjFsPfBz/fsPfTj',
		method: 'post',
		params: parameter
	})
}
export function fsPfTj_xxh(parameter) {
	return axios({
		url: '/cxj/cxjFsPfXxh/fsPfTj',
		method: 'post',
		params: parameter
	})
}
export function fsPfTj_zl(parameter) {
	return axios({
		url: '/cxj/cxjFsPfZl/fsPfTj',
		method: 'post',
		params: parameter
	})
}
export function fsPfTj_export_js(parameter) {
	return axios({
        url: "/cxj/cxjFsPfJs/fsPfTj_export",
		params: parameter,
		method: 'get',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
export function fsPfTj_export_gl(parameter) {
	return axios({
		url: "/cxj/cxjFsPfGl/fsPfTj_export",
		params: parameter,
		method: 'get',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
export function fsPfTj_export_bz(parameter) {
	return axios({
		url: "/cxj/cxjFsPfBz/fsPfTj_export",
		params: parameter,
		method: 'get',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
export function fsPfTj_export_xxh(parameter) {
	return axios({
		url: "/cxj/cxjFsPfXxh/fsPfTj_export",
		params: parameter,
		method: 'get',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
export function fsPfTj_export_zl(parameter) {
	return axios({
		url: "/cxj/cxjFsPfZl/fsPfTj_export",
		params: parameter,
		method: 'get',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
export function getFsPfmxByCxjid_js(parameter) {
	return axios({
		url: '/cxj/cxjFsPfJs/getFsPfmxByCxjid',
		method: 'post',
		params: parameter
	})
}
export function getFsPfmxByCxjid_gl(parameter) {
	return axios({
		url: '/cxj/cxjFsPfGl/getFsPfmxByCxjid',
		method: 'post',
		params: parameter
	})
}
export function getFsPfmxByCxjid_bz(parameter) {
	return axios({
		url: '/cxj/cxjFsPfBz/getFsPfmxByCxjid',
		method: 'post',
		params: parameter
	})
}
export function getFsPfmxByCxjid_xxh(parameter) {
	return axios({
		url: '/cxj/cxjFsPfXxh/getFsPfmxByCxjid',
		method: 'post',
		params: parameter
	})
}
export function getFsPfmxByCxjid_zl(parameter) {
	return axios({
		url: '/cxj/cxjFsPfZl/getFsPfmxByCxjid',
		method: 'post',
		params: parameter
	})
}
export function zfTj_js(parameter) {
	return axios({
		url: '/cxj/cxjFsPfJs/zfTj',
		method: 'post',
		params: parameter
	})
}
export function zfTj_Zg(parameter) {
	return axios({
		url: '/cxj/cxjFsPfZg/zfTj',
		method: 'post',
		params: parameter
	})
}
export function zfTj_gl(parameter) {
	return axios({
		url: '/cxj/cxjFsPfGl/zfTj',
		method: 'post',
		params: parameter
	})
}
export function zfTj_bz(parameter) {
	return axios({
		url: '/cxj/cxjFsPfBz/zfTj',
		method: 'post',
		params: parameter
	})
}
export function zfTj_xxh(parameter) {
	return axios({
		url: '/cxj/cxjFsPfXxh/zfTj',
		method: 'post',
		params: parameter
	})
}
export function zfTj_zl(parameter) {
	return axios({
		url: '/cxj/cxjFsPfZl/zfTj',
		method: 'post',
		params: parameter
	})
}
export function zfTj_export_js(parameter) {
	return axios({
		url: "/cxj/cxjFsPfJs/zfTj_export",
		params: parameter,
		method: 'post',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
export function zfTj_export_zg(parameter) {
	return axios({
		url: "/cxj/cxjFsPfZg/zfTj_export",
		params: parameter,
		method: 'post',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
export function zfTj_export_gl(parameter) {
	return axios({
		url: "/cxj/cxjFsPfGl/zfTj_export",
		params: parameter,
		method: 'post',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
export function zfTj_export_bz(parameter) {
	return axios({
		url: "/cxj/cxjFsPfBz/zfTj_export",
		params: parameter,
		method: 'post',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
export function zfTj_export_xxh(parameter) {
	return axios({
		url: "/cxj/cxjFsPfXxh/zfTj_export",
		params: parameter,
		method: 'post',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
export function zfTj_export_zl(parameter) {
	return axios({
		url: "/cxj/cxjFsPfZl/zfTj_export",
		params: parameter,
		method: 'post',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
export function cxjfs_fsxmlist_export(parameter) {
	return axios({
		url: "/cxj/cxjFsFzXm/cxjfs_fsxmlist_export",
		params: parameter,
		method: 'post',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
export function cxjfs_fsxmlist_export_zg(parameter) {
	return axios({
		url: "/cxj/cxjFsFzXm/cxjfs_fsxmlist_export_zg",
		params: parameter,
		method: 'post',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
export function cxjfs_fsxmlist_import(data) {
	return axios({
		url: "/cxj/cxjFsFzXm/cxjfs_fsxmlist_import",
		data,
		method: 'post'
	})
}
// 专家复审评分导出 - 技术
export function cxjfs_fspsExport_js(parameter) {
	return axios({
		url: '/cxj/cxjFsPfJs/cxjfs_fspsExport',
		method: 'post',
		params: parameter,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
// 专家复审评分导出 - 管理
export function cxjfs_fspsExport_gl(parameter) {
	return axios({
		url: '/cxj/cxjFsPfGl/cxjfs_fspsExport',
		method: 'post',
		params: parameter,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
// 专家复审评分导出 - 标准
export function cxjfs_fspsExport_bz(parameter) {
	return axios({
		url: '/cxj/cxjFsPfBz/cxjfs_fspsExport',
		method: 'post',
		params: parameter,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
// 专家复审评分导出 - 信息化
export function cxjfs_fspsExport_xxh(parameter) {
	return axios({
		url: '/cxj/cxjFsPfXxh/cxjfs_fspsExport',
		method: 'post',
		params: parameter,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
// 专家复审评分导出 - 专利
export function cxjfs_fspsExport_zl(parameter) {
	return axios({
		url: '/cxj/cxjFsPfZl/cxjfs_fspsExport',
		method: 'post',
		params: parameter,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
export function cxjzxpd_tpxmlist_import(data) {
	return axios({
		url: "/cxj/cxjZxpdXmJs/cxjzxpd_tpxmlist_import",
		data,
		method: 'post'
	})
}
export function cxjdjps_xmList_import(data) {
	return axios({
		url: "/cxj/cxjDjpsXm/cxjdjps_xmList_import",
		data,
		method: 'post'
	})
}
// 大奖评审--是否获奖
export function cxjdjps_xmList_isAwarded(data) {
	return axios({
		url: "/cxj/cxjDjpsXm/isAwarded",
		data,
		method: 'post'
	})
}

// 委员审定-投票成果管理-导入
export function cxjwysd_tpxmlist_import(data) {
	return axios({
		url: "/cxj/cxjWysdXm/cxjwysd_tpxmlist_import",
		data,
		method: 'post'
	})
}
// 委员审定-投票成果管理（职工类）-导入
export function zg_cxjwysd_tpxmlist_import(data) {
	return axios({
		url: "/cxj/cxjWysdXmZgcg/cxjwysd_tpxmlist_import",
		data,
		method: 'post'
	})
}
export function cxjdjps_pfTj(parameter) {
	return axios({
		url: '/cxj/cxjDjpsPf/cxjdjps_pfTj',
		method: 'post',
		params: parameter
	})
}
export function cxjdjps_nhdjxmList(parameter) {
  return axios({
    url: '/cxj/cxjDjpsXm/cxjdjps_nhdjxmList',
    method: 'get',
    params: parameter
  })
}
export function cxjdjps_dftjExport(parameter) {
	return axios({
        url: "/cxj/cxjDjpsPf/cxjdjps_dftjExport",
		params: parameter,
		method: 'post',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}
export function cxjdjps_nhdjxmExport(parameter) {
  return axios({
    url: "/cxj/cxjDjpsXm/cxjdjps_nhdjxmExport",
    params: parameter,
    method: 'post',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    responseType: 'arraybuffer'
  })
}
export function cxjdjps_getpfmxByCxjid(parameter) {
	return axios({
		url: '/cxj/cxjDjpsPf/cxjdjps_getpfmxByCxjid',
		method: 'post',
		params: parameter
	})
}
export function cxjdjpsSubmitPf(parameter) {
	return axios({
		url: '/cxj/cxjDjpsPf/cxjdjps_submitPf',
		method: 'post',
		params: parameter
	})
}
// 奖项修改
export function cxjdjpsChangeAwards(data) {
	return axios({
		url: '/cxj/cxjWysdXm/changeAwards',
		method: 'post',
		data
	})
}
// 意见征集
export function cxjOpinionCollection(data) {
    return axios({
        url: '/cxj/zzDlaqyjzj/add',
        method: 'post',
        data
    })
}
/**
 * 下载文件
 * @param url 文件路径
 * @param fileName 文件名
 * @param parameter
 * @returns {*}
 */
export function downloadFile(url, fileName, parameter) {
	return downFile(url, parameter).then((data) => {
		if (!data || data.size === 0) {
			Vue.prototype['$message'].warning('文件下载失败')
			return
		}
		if (typeof window.navigator.msSaveBlob !== 'undefined') {
			window.navigator.msSaveBlob(new Blob([data]), fileName)
		} else {
			let url = window.URL.createObjectURL(new Blob([data]))
			let link = document.createElement('a')
			link.style.display = 'none'
			link.href = url
			link.setAttribute('download', fileName)
			document.body.appendChild(link)
			link.click()
			document.body.removeChild(link) //下载完成移除元素
			window.URL.revokeObjectURL(url) //释放掉blob对象
		}
	})
}

/**
 * 文件上传 用于富文本上传图片
 * @param url
 * @param parameter
 * @returns {*}
 */
export function uploadAction(url, parameter) {
	return axios({
		url: url,
		data: parameter,
		method: 'post',
		headers: {
			'Content-Type': 'multipart/form-data',  // 文件上传
		},
	})
}

/**
 * 获取文件服务访问路径
 * @param avatar
 * @param subStr
 * @returns {*}
 */
export function getFileAccessHttpUrl(avatar, subStr) {
	if (!subStr) subStr = 'http'
	try {
		if (avatar && avatar.startsWith(subStr)) {
			return avatar;
		} else {
			if (avatar && avatar.length > 0 && avatar.indexOf('[') == -1) {
				return window._CONFIG['staticDomainURL'] + "/" + avatar;
			}
		}
	} catch (err) {
		return;
	}
}
// 形式审查 - 职工
export function xsscTjZg(shijian) {
  return axios({
    url: '/cxj/cxjXssc/xsscTjZg?shijian='+shijian,
    method: 'post'
  })
}
export function list_jlb_zg(parameter) {
  return axios({
    url: '/cxj/cxjXssc/list_jlb_zg',
    method: 'post',
    params: parameter,
  })
}
// 形式审查 - 卫生
export function xsscTjWs(shijian) {
  return axios({
    url: '/cxj/cxjXssc/xsscTjWs?shijian='+shijian,
    method: 'post'
  })
}
export function list_jlb_ws(parameter) {
  return axios({
    url: '/cxj/cxjXssc/list_jlb_ws',
    method: 'post',
    params: parameter,
  })
}

// 形式审查 - 标准
export function xsscTjBz(shijian) {
  return axios({
    url: '/cxj/cxjXssc/xsscTjBz?shijian='+shijian,
    method: 'post'
  })
}
export function list_jlb_bz(parameter) {
  return axios({
    url: '/cxj/cxjXssc/list_jlb_bz',
    method: 'post',
    params: parameter,
  })
}

export function jscsPfTj_Zg(parameter) {
	return axios({
		url: '/cxj/cxjJscsPfZg/jscsPfTj',
		method: 'post',
		params: parameter
	})
}
// 评分统计 - 职工类
export function fsPfTj_zg(parameter) {
	return axios({
		url: '/cxj/cxjFsPfZg/fsPfTj',
		method: 'post',
		params: parameter
	})
}
// 评分统计 - 职工类 - 导出
export function fsPfTj_export_zg(parameter) {
	return axios({
        url: "/cxj/cxjFsPfZg/fsPfTj_export",
		params: parameter,
		method: 'get',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
		responseType: 'arraybuffer'
	})
}